<template>
  <div class="app-page">
    <div class="header">
      <img v-if="userStore.logostyletype == 1" style="width: 110px; height: 28px" :src="userStore.logoimg()" alt="" />
      <img v-else style="width: 45px; height: 30px" :src="userStore.logoimg()" alt="" />
    </div>
    <div class="page">
      <div class="menu">
        <app-sidebar />
      </div>
      <div class="app-main">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script setup>
const userStore = useUserStore()
</script>

<style lang="scss" scoped>
.app-page {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;

  .header {
    height: 44px;
    width: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .page {
    display: flex;
    width: 100%;
    height: calc(100% - 44px);

    .menu {
      width: 48px;
      height: 100%;
      background-color: #345663;
    }
  }
}

.app-main {
      width: calc(100% - 48px);
    height: 100%;
}
</style>